package Mangos::DB::Realmd::Realmcharacters;

use strict;

use base qw(Mangos::DB::Realmd);

__PACKAGE__->meta->setup
(
    table   => 'realmcharacters',

    columns => 
    [
        realmid  => { type => 'integer', not_null => 1 },
        acctid   => { type => 'bigint', not_null => 1 },
        numchars => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'realmid', 'acctid' ],
);

1;

package Mangos::DB::Realmd::Realmcharacters::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Realmd::Realmcharacters' }

__PACKAGE__->make_manager_methods('realmcharacters');

1;
